package com.louis.ylog.starter;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "ylog")
public class YLogProperties {

    /**
     * 应用名称(默认spring.application.name)
     */
    private String appName;

    /**
     * 环境(默认spring.profiles.active)
     */
    private String env;

    /**
     * 是否启用YLog日志收集(ELK+CAT)
     */
    private boolean enableYLog = false;

    @Autowired
    private ELKConfig elk;

    @Autowired
    private CATConfig cat;



}
